package com.suppor.rpc.proto.protocol;

import java.io.Serializable;

public class MsgHeader implements Serializable {
    public static final int HEAD_LENGTH = 18;
    public static final short MAGIC_NUMBER = 0x110;
    public static final byte PROTOCOL_VERSION = 0x1;
    private short magic;
    private byte version;
    private byte serializeType;
    private byte msgType; // 报文类型
    private byte status;
    private Long requestId;
    private int length; //保温长度

    public short getMagic() {
        return magic;
    }

    public void setMagic(short magic) {
        this.magic = magic;
    }

    public byte getVersion() {
        return version;
    }

    public void setVersion(byte version) {
        this.version = version;
    }

    public byte getSerializeType() {
        return serializeType;
    }

    public void setSerializeType(byte serializeType) {
        this.serializeType = serializeType;
    }

    public byte getMsgType() {
        return msgType;
    }

    public void setMsgType(byte msgType) {
        this.msgType = msgType;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public Long getRequestId() {
        return requestId;
    }

    public void setRequestId(Long requestId) {
        this.requestId = requestId;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }
}
